package org.smartj2ee.db;

import java.util.Iterator;
import java.util.LinkedList;
import java.util.List;

public class DBDriverFactory {

	public DBDriverFactory() {
		
	}
	public static void init() throws ClassNotFoundException{
		
		for (Iterator iterator = driverLoaders.iterator(); iterator.hasNext();) {
			IDriverLoader type = (IDriverLoader) iterator.next();
			type.loadClass();
		}
	}
	
	private static List<IDriverLoader> driverLoaders=new LinkedList<IDriverLoader>();
	public static void register(IDriverLoader driverLoader){
		driverLoaders.add(driverLoader);
	}
	
	public static void main(String[] args) {
		
	}

}
